home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c++-part1 / 7881 < prev    next >
Encoding:
Internet Message Format  |  1996-08-05  |  814 b 

  1. Path: queens-belfast.ac.uk!gbw
  2. Newsgroups: comp.lang.c++
  3. Subject: No struct in C++!!?
  4. Message-ID: <1996Feb14.151620.5532@queens-belfast.ac.uk>
  5. From: gbw@harrier.am.qub.ac.uk (Georg Woste)
  6. Date: 14 Feb 96 15:16:18 GMT
  7. Sender: gbw@qub.ac.uk (Georg Woste)
  8. Organization: DAMTP, Queen's University of Belfast
  9. Nntp-Posting-Host: harrier.am.qub.ac.uk
  10.  
  11. Hi,
  12.  
  13. a beginners question: I found in different C++ books examples of C++ programms
  14. which contain type declarations and definitions in the main() programm - for
  15. example a struct  - as in C.
  16. My question is, whether this is a contradiction 
  17. to the paradigm of C++. Shouldn't be everything in a C++ programm
  18. either classes, objects or the interaction between objects?
  19. So is it bad C++ style, to use functions or data outside from
  20. classes (objects)?
  21.  
  22. Thanks!
  23.  
  24. Georg Woeste
  25.